package com.shengqin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shengqin.common.pojo.CommonPage;
import com.shengqin.entity.School;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shengqin.pojo.school.SchoolImportParam;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 学校 服务类
 * </p>
 *
 * @author Rui.Zhou
 * @since 2023-12-05
 */
public interface ISchoolService extends IService<School> {

    Page<School> getPage(CommonPage<School> pageParam);

    School getByNameAndLoginId(String schoolName);

    List<School> listByNames(Collection<String> schoolNames);

    boolean onBatchSave(List<SchoolImportParam> cachedDataList, Set<String> errorList);

    List<School> listByUserId(Integer userId);

    School getBySchoolName(String schoolName);
}
